package top.littlejiang.onlinexam.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import top.littlejiang.onlinexam.common.utils.DateUtils;

/**
 * <p>
 * OlexamMenu
 * </p>
 *
 * @author chen
 * @since 2020-12-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("OlexamMenu")
public class OlexamMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 菜单名
     */
    private String menuName;

    /**
     * 父级id
     */
    private Integer menuParent;

    /**
     * 菜单权限
     */
    private String menuPromise;

    /**
     * 图标
     */
    private String menuIcon;

    /**
     * 路径
     */
    private String menuUrl;

    /**
     * 排序
     */
    private Integer menuSort;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = DateUtils.DATE_TIME_PATTERN_19)
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN_19, timezone="GMT+8")
    private Date createTime;

    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = DateUtils.DATE_TIME_PATTERN_19)
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN_19, timezone="GMT+8")
    private Date updateTime;

    /**
     * 逻辑删除
     */
    @JsonProperty(value = "isDel")
    private int isDel;

    /**
     * 备注
     */
    private String remarks;


}
